package com.gw.business.analysis.model;

import java.util.Date;

import com.gw.business.common.util.StringUtil;
import com.gw.platform.model.BaseModel;


public class UserTrackDataAttribution implements BaseModel{
	
	 /**
	 * 
	 */
	private static final long serialVersionUID = -277164286551302021L;
	private int id;
	 //日期(yyyy-MM-dd)
	 private Date dataTime;
	 //广告来源
	 private String utmcsr;
	 //广告媒介
	 private String utmcmd;
	
	 
	 //模拟开户总数
	 private double demoCount;
	 //真实开户总数
	 private double realCount;
	 
	 //计算一个会话中有多少个开户
	 private double accountCount = 1;
	 
	 //计算所有开户中标示
	 private String accountDN;
	

	 public String getFormatDemoNum(){
	    
	 return StringUtil.formArith(demoCount);
	     
	 }
	 public String getFormatrealNum(){
	        
         return StringUtil.formArith(realCount);
     
 }
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Date getDataTime() {
		return dataTime;
	}
	public void setDataTime(Date dataTime) {
		this.dataTime = dataTime;
	}
	public String getUtmcsr() {
		return utmcsr;
	}
	public void setUrmcsr(String utmcsr) {
		this.utmcsr = utmcsr;
	}
	public String getUtmcmd() {
		return utmcmd;
	}
	public void setUtmcmd(String utmcmd) {
		this.utmcmd = utmcmd;
	}
	public double getDemoCount() {
		return demoCount;
	}
	public void setDemoCount(double demoCount) {
		this.demoCount = demoCount;
	}
	public double getRealCount() {
		return realCount;
	}
	public void setRealCount(double realCount) {
		this.realCount = realCount;
	}
	public void setUtmcsr(String utmcsr) {
		this.utmcsr = utmcsr;
	}
	@Override
	public String toString() {
		return "UserTrackDataAttribution [id=" + id + ", dataTime=" + dataTime
				+ ", utmcsr=" + utmcsr + ", utmcmd=" + utmcmd + ", demoCount="
				+ demoCount + ", realCount=" + realCount + ", accountCount="
				+ accountCount + "]";
	}
	public double getAccountCount() {
		return accountCount;
	}
	public void setAccountCount(double accountCount) {
		this.accountCount = accountCount;
	}
	public String getAccountDN() {
		return accountDN;
	}
	public void setAccountDN(String accountDN) {
		this.accountDN = accountDN;
	}
	
	
	 
	 
	 
}
